class CreateProductHasShippingMethod < ActiveRecord::Migration
  def change
    create_table :product_has_shipping_method do |t|
      t.references :product, :null => false
      t.references :shipping_method, :null => false
    end

    add_index :product_has_shipping_method, :product_id
    add_index :product_has_shipping_method, :shipping_method_id
  end
end
